from django.urls import path,include
from rest_framework.routers import DefaultRouter
from pingtuan import views



router = DefaultRouter()

urlpatterns = [
    # path('', views.index, name='主页'),
    # path('api/order/', views.OrderView.as_view()),
    # path('api/login/', views.LoginView.as_view()),
    #
    # path('api/jwt/order/', views.JwtOrderView.as_view()),
    # path('api/jwt/login/', views.JwtLoginView.as_view()),

    path('/api/', include(router.urls)),
    # path('api/test/', views.TestView.as_view()),
    # # path('api/projwt/login/', views.ProLoginView.as_view()),
    # path('api/user/', views.UserAPI.as_view()),
    # path('api/user/users/', views.UsersGenericAPIView.as_view()),
    # path('api/user/users/<int:id>/',views.UsersDetailMixinGenericAPIView.as_view()),
    # path('api/user/tasks/', views.TasksGenericAPIView.as_view()),
    # path('api/user/tasks/<int:id>/',views.TasksDetailMixinGenericAPIView.as_view()),
    # path('api/user/users',views.UsersViewSet),
    # path('api/user/tasks',views.TasksViewSet),
    path('api/user/',views.User.as_view()),
    path('api/userinfo/',views.Userinfo.as_view()),
    path('api/usercon/',views.Usercon.as_view()),
    path('api/userfan/',views.Userfan.as_view()),
]

